package com.sy.musicapp.intent.network

import okhttp3.Interceptor
import okhttp3.Response

/**
 * OkHttp接收拦截器
 * @author SY
 * @since 2022-02-20 00:08
 **/
class OkHttpReceiveInterceptor : Interceptor {

    override fun intercept(chain: Interceptor.Chain): Response {
        val proceed = chain.proceed(chain.request())
//        Util.showLog(proceed.body()?.string(),"RECEIVE") 在这里读取数据流被关闭，导致后面读取的时候报错
        return proceed
    }
}